inherited FRelatorioLucros: TFRelatorioLucros
  Left = 210
  Top = 184
  Width = 859
  Height = 451
  Caption = 'GEST'#195'O EMPRESARIAL / VENDAS / FATURAMENTO /  RELAT'#211'RIOS'
  OldCreateOrder = True
  PixelsPerInch = 96
  TextHeight = 16
  inherited Panel1: TPanel
    Width = 851
  end
  inherited Panel2: TPanel
    Width = 851
    Caption = 'LUCRO DAS VENDAS'
    Font.Style = [fsBold]
    ParentFont = False
  end
  inherited GroupBox1: TGroupBox
    Left = 2
    Width = 567
    object Label10: TLabel
      Left = 9
      Top = 20
      Width = 71
      Height = 16
      Caption = 'Empresas'
      Font.Charset = DEFAULT_CHARSET
      Font.Color = clWindowText
      Font.Height = -13
      Font.Name = 'MS Sans Serif'
      Font.Style = [fsBold]
      ParentFont = False
    end
    object Label3: TLabel
      Left = 9
      Top = 81
      Width = 123
      Height = 16
      Caption = 'Grupo do Produto'
      Font.Charset = DEFAULT_CHARSET
      Font.Color = clBlack
      Font.Height = -13
      Font.Name = 'MS Sans Serif'
      Font.Style = [fsBold]
      ParentFont = False
    end
    object Label4: TLabel
      Left = 9
      Top = 127
      Width = 175
      Height = 16
      Caption = 'Classifica'#231#227'o do Produto'
      Font.Charset = DEFAULT_CHARSET
      Font.Color = clBlack
      Font.Height = -13
      Font.Name = 'MS Sans Serif'
      Font.Style = [fsBold]
      ParentFont = False
    end
    object Label8: TLabel
      Left = 329
      Top = 80
      Width = 83
      Height = 16
      Caption = 'Estoque/Local'
    end
    object CLBEmpresas: TCheckListBox
      Left = 9
      Top = 39
      Width = 546
      Height = 36
      Columns = 1
      ItemHeight = 16
      TabOrder = 0
    end
    object DBLGrupoProduto: TDBLookupComboBox
      Left = 9
      Top = 98
      Width = 237
      Height = 22
      Ctl3D = False
      KeyField = 'GRUP_PROD_CODIGO'
      ListField = 'GRUP_PROD_DESCRICAO'
      ListSource = DSGrupoProduto
      ParentCtl3D = False
      TabOrder = 1
      OnKeyDown = DBLGrupoProdutoKeyDown
    end
    object DBLCBNivel1: TDBLookupComboBox
      Left = 8
      Top = 144
      Width = 301
      Height = 22
      Ctl3D = False
      KeyField = 'ESTRUTURA'
      ListField = 'CLASS_PROD_DESCRICAO'
      ListSource = DSNivel1
      ParentCtl3D = False
      TabOrder = 2
      OnKeyDown = DBLCBNivel1KeyDown
    end
    object GBPeriodo: TGroupBox
      Left = 9
      Top = 179
      Width = 299
      Height = 71
      Caption = '  Per'#237'odo  '
      TabOrder = 3
      object Label5: TLabel
        Left = 10
        Top = 30
        Width = 16
        Height = 16
        Caption = 'De'
      end
      object Label6: TLabel
        Left = 154
        Top = 30
        Width = 7
        Height = 16
        Caption = #224
      end
      object DtPeriodo1: TDateEdit
        Left = 34
        Top = 30
        Width = 110
        Height = 25
        ButtonWidth = 26
        NumGlyphs = 2
        TabOrder = 0
      end
      object DtPeriodo2: TDateEdit
        Left = 174
        Top = 30
        Width = 110
        Height = 25
        ButtonWidth = 26
        NumGlyphs = 2
        TabOrder = 1
      end
    end
    object CLBLocal: TCheckListBox
      Left = 328
      Top = 96
      Width = 227
      Height = 179
      Columns = 1
      ItemHeight = 16
      TabOrder = 4
    end
  end
  inherited GroupBox2: TGroupBox
    Left = 567
    Width = 283
    inherited Bevel1: TBevel
      Left = 8
      Width = 264
    end
    inherited Label2: TLabel
      Left = 8
    end
    inherited edSubTitulo: TEdit
      Width = 267
    end
    inherited rbRelatorio: TRadioButton
      Left = 8
    end
    inherited rbExcel: TRadioButton
      Left = 8
    end
    inherited rbPDF: TRadioButton
      Left = 8
    end
    inherited btnExecutar: TBitBtn
      Left = 193
      Top = 327
    end
    object GBAgrupar: TGroupBox
      Left = 10
      Top = 87
      Width = 263
      Height = 82
      Caption = '  Agrupar por?  '
      TabOrder = 5
      object RBGrupoProduto: TRadioButton
        Left = 10
        Top = 17
        Width = 139
        Height = 21
        Caption = 'Grupo do Produto'
        Checked = True
        TabOrder = 0
        TabStop = True
        OnClick = RBGrupoProdutoClick
      end
      object RBClassificacaoProduto: TRadioButton
        Left = 10
        Top = 37
        Width = 171
        Height = 21
        Caption = 'Classifica'#231#227'o do Produto'
        TabOrder = 1
        OnClick = RBClassificacaoProdutoClick
      end
    end
    object GBOrdernar: TGroupBox
      Left = 10
      Top = 169
      Width = 263
      Height = 82
      Caption = '  Ordernar por?    '
      TabOrder = 6
      object RBCodigoProduto: TRadioButton
        Left = 10
        Top = 17
        Width = 139
        Height = 21
        Caption = 'C'#243'digo do Produto'
        TabOrder = 0
        OnClick = RBCodigoProdutoClick
      end
      object RBReferenciaProduto: TRadioButton
        Left = 10
        Top = 37
        Width = 154
        Height = 21
        Caption = 'Refer'#234'ncia do Produto'
        TabOrder = 1
        OnClick = RBReferenciaProdutoClick
      end
      object RBDescricaoProduto: TRadioButton
        Left = 10
        Top = 57
        Width = 154
        Height = 21
        Caption = 'Descri'#231#227'o do Produto'
        Checked = True
        TabOrder = 2
        TabStop = True
        OnClick = RBDescricaoProdutoClick
      end
    end
    object RadioGroup1: TRadioGroup
      Left = 8
      Top = 54
      Width = 263
      Height = 34
      Caption = '  Identifica'#231#227'o Produto  '
      Columns = 2
      ItemIndex = 0
      Items.Strings = (
        'C'#243'digo'
        'C'#243'digo Ant.')
      TabOrder = 7
    end
  end
  inherited RLReport: TRLReport
    Left = -377
    Top = 586
    Width = 1123
    Height = 794
    DataSource = DsRelatorio
    Margins.LeftMargin = 5.000000000000000000
    Margins.RightMargin = 5.000000000000000000
    PageSetup.Orientation = poLandscape
    inherited RLBand1: TRLBand
      Left = 19
      Width = 1085
      inherited RLMemo: TRLMemo
        Left = 834
        Width = 418
        Height = 28
      end
      inherited rlInfo: TRLSystemInfo
        Left = 1097
      end
      inherited rlInfo1: TRLLabel
        Left = 834
      end
      inherited RLSystemInfo1: TRLSystemInfo
        Left = 1232
      end
    end
    object RLBand2: TRLBand
      Left = 19
      Top = 120
      Width = 1085
      Height = 42
      BandType = btColumnHeader
      Borders.Sides = sdCustom
      Borders.DrawLeft = False
      Borders.DrawTop = False
      Borders.DrawRight = False
      Borders.DrawBottom = True
      Borders.FixedBottom = True
      object RLLabel2: TRLLabel
        Left = 1
        Top = 20
        Width = 49
        Height = 16
        Caption = 'C'#243'digo'
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clBlack
        Font.Height = -13
        Font.Name = 'Arial'
        Font.Style = [fsBold]
        ParentFont = False
      end
      object RLLabel3: TRLLabel
        Left = 54
        Top = 20
        Width = 73
        Height = 16
        AutoSize = False
        Caption = 'Refer'#234'ncia'
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clBlack
        Font.Height = -13
        Font.Name = 'Arial'
        Font.Style = [fsBold]
        ParentFont = False
      end
      object RLLabel4: TRLLabel
        Left = 132
        Top = 20
        Width = 66
        Height = 16
        Caption = 'Descri'#231#227'o'
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clBlack
        Font.Height = -13
        Font.Name = 'Arial'
        Font.Style = [fsBold]
        ParentFont = False
      end
      object RLLabel5: TRLLabel
        Left = 440
        Top = 0
        Width = 26
        Height = 16
        Alignment = taCenter
        Caption = 'Qtd'
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clBlack
        Font.Height = -13
        Font.Name = 'Arial'
        Font.Style = [fsBold]
        ParentFont = False
      end
      object RLLabel6: TRLLabel
        Left = 426
        Top = 20
        Width = 58
        Height = 17
        Alignment = taCenter
        AutoSize = False
        Caption = 'Vendida'
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clBlack
        Font.Height = -13
        Font.Name = 'Arial'
        Font.Style = [fsBold]
        ParentFont = False
      end
      object RLLabel7: TRLLabel
        Left = 486
        Top = 20
        Width = 99
        Height = 17
        Alignment = taRightJustify
        AutoSize = False
        Caption = 'Venda'
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clBlack
        Font.Height = -13
        Font.Name = 'Arial'
        Font.Style = [fsBold]
        ParentFont = False
      end
      object RLLabel8: TRLLabel
        Left = 589
        Top = 20
        Width = 98
        Height = 17
        Alignment = taRightJustify
        AutoSize = False
        Caption = 'M'#233'dia'
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clBlack
        Font.Height = -13
        Font.Name = 'Arial'
        Font.Style = [fsBold]
        ParentFont = False
      end
      object RLLabel1: TRLLabel
        Left = 486
        Top = 0
        Width = 99
        Height = 17
        Alignment = taRightJustify
        AutoSize = False
        Caption = 'Total'
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clBlack
        Font.Height = -13
        Font.Name = 'Arial'
        Font.Style = [fsBold]
        ParentFont = False
      end
      object RLLabel9: TRLLabel
        Left = 589
        Top = 0
        Width = 98
        Height = 17
        Alignment = taRightJustify
        AutoSize = False
        Caption = 'Venda'
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clBlack
        Font.Height = -13
        Font.Name = 'Arial'
        Font.Style = [fsBold]
        ParentFont = False
      end
      object RLLabel10: TRLLabel
        Left = 690
        Top = 0
        Width = 99
        Height = 17
        Alignment = taRightJustify
        AutoSize = False
        Caption = 'Custo da'
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clBlack
        Font.Height = -13
        Font.Name = 'Arial'
        Font.Style = [fsBold]
        ParentFont = False
      end
      object RLLabel11: TRLLabel
        Left = 690
        Top = 20
        Width = 99
        Height = 17
        Alignment = taRightJustify
        AutoSize = False
        Caption = 'Venda'
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clBlack
        Font.Height = -13
        Font.Name = 'Arial'
        Font.Style = [fsBold]
        ParentFont = False
      end
      object RLLabel12: TRLLabel
        Left = 794
        Top = 0
        Width = 99
        Height = 17
        Alignment = taRightJustify
        AutoSize = False
        Caption = 'Custo'
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clBlack
        Font.Height = -13
        Font.Name = 'Arial'
        Font.Style = [fsBold]
        ParentFont = False
      end
      object RLLabel13: TRLLabel
        Left = 794
        Top = 20
        Width = 99
        Height = 17
        Alignment = taRightJustify
        AutoSize = False
        Caption = 'M'#233'dio'
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clBlack
        Font.Height = -13
        Font.Name = 'Arial'
        Font.Style = [fsBold]
        ParentFont = False
      end
      object RLLabel14: TRLLabel
        Left = 897
        Top = 0
        Width = 99
        Height = 17
        Alignment = taRightJustify
        AutoSize = False
        Caption = 'Total'
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clBlack
        Font.Height = -13
        Font.Name = 'Arial'
        Font.Style = [fsBold]
        ParentFont = False
      end
      object RLLabel15: TRLLabel
        Left = 897
        Top = 20
        Width = 99
        Height = 17
        Alignment = taRightJustify
        AutoSize = False
        Caption = 'Lucro'
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clBlack
        Font.Height = -13
        Font.Name = 'Arial'
        Font.Style = [fsBold]
        ParentFont = False
      end
      object RLLabel16: TRLLabel
        Left = 1001
        Top = 0
        Width = 75
        Height = 17
        Alignment = taRightJustify
        AutoSize = False
        Caption = '%'
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clBlack
        Font.Height = -13
        Font.Name = 'Arial'
        Font.Style = [fsBold]
        ParentFont = False
      end
      object RLLabel17: TRLLabel
        Left = 1001
        Top = 20
        Width = 75
        Height = 17
        Alignment = taRightJustify
        AutoSize = False
        Caption = 'Lucro'
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clBlack
        Font.Height = -13
        Font.Name = 'Arial'
        Font.Style = [fsBold]
        ParentFont = False
      end
    end
    object RLGroup1: TRLGroup
      Left = 19
      Top = 162
      Width = 1085
      Height = 80
      DataFields = 'GRUP_PROD_DESCRICAO'
      object RLBand3: TRLBand
        Left = 0
        Top = 0
        Width = 1085
        Height = 16
        BandType = btColumnHeader
        object RLDBText2: TRLDBText
          Left = 1
          Top = -1
          Width = 168
          Height = 16
          DataField = 'GRUP_PROD_DESCRICAO'
          DataSource = DsRelatorio
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -13
          Font.Name = 'Arial'
          Font.Style = [fsBold]
          ParentFont = False
          BeforePrint = RLDBText2BeforePrint
        end
      end
      object RLBand4: TRLBand
        Left = 0
        Top = 16
        Width = 1085
        Height = 18
        object RLDBText3: TRLDBText
          Left = 1
          Top = 0
          Width = 50
          Height = 17
          Alignment = taCenter
          AutoSize = False
          DataField = 'PROD_CODIGO'
          DataSource = DsRelatorio
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -11
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
        end
        object RLDBText4: TRLDBText
          Left = 54
          Top = 0
          Width = 73
          Height = 17
          AutoSize = False
          DataField = 'PROD_REFERENCIA'
          DataSource = DsRelatorio
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -11
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
        end
        object RLDBText5: TRLDBText
          Left = 132
          Top = 0
          Width = 290
          Height = 17
          AutoSize = False
          DataField = 'PROD_DESCRICAOSAI'
          DataSource = DsRelatorio
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -11
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
        end
        object RLDBText6: TRLDBText
          Left = 426
          Top = 0
          Width = 58
          Height = 17
          Alignment = taCenter
          AutoSize = False
          DataField = 'QTD'
          DataSource = DsRelatorio
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -11
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
        end
        object RLDBText8: TRLDBText
          Left = 486
          Top = 0
          Width = 99
          Height = 17
          Alignment = taRightJustify
          AutoSize = False
          DataField = 'VENDAS'
          DataSource = DsRelatorio
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -11
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
          BeforePrint = RLDBText8BeforePrint
        end
        object RLDBText9: TRLDBText
          Left = 589
          Top = 0
          Width = 98
          Height = 17
          Alignment = taRightJustify
          AutoSize = False
          DataField = 'VENDA_MEDIA'
          DataSource = DsRelatorio
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -11
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
          BeforePrint = RLDBText8BeforePrint
        end
        object RLDBText7: TRLDBText
          Left = 690
          Top = 0
          Width = 98
          Height = 17
          Alignment = taRightJustify
          AutoSize = False
          DataField = 'CUSTO_VENDA'
          DataSource = DsRelatorio
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -11
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
          BeforePrint = RLDBText8BeforePrint
        end
        object RLDBText10: TRLDBText
          Left = 794
          Top = 0
          Width = 99
          Height = 17
          Alignment = taRightJustify
          AutoSize = False
          DataField = 'CUSTO_MEDIO'
          DataSource = DsRelatorio
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -11
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
          BeforePrint = RLDBText10BeforePrint
        end
        object RLDBText11: TRLDBText
          Left = 897
          Top = 0
          Width = 99
          Height = 17
          Alignment = taRightJustify
          AutoSize = False
          DataField = 'LUCRO'
          DataSource = DsRelatorio
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -11
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
          BeforePrint = RLDBText8BeforePrint
        end
        object RLDBText12: TRLDBText
          Left = 1001
          Top = 0
          Width = 75
          Height = 17
          Alignment = taRightJustify
          AutoSize = False
          DataField = 'LUCRO_PERC'
          DataSource = DsRelatorio
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -11
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
          BeforePrint = RLDBText8BeforePrint
        end
      end
      object RLBand5: TRLBand
        Left = 0
        Top = 34
        Width = 1085
        Height = 27
        BandType = btColumnFooter
        object RLLabel18: TRLLabel
          Left = 2
          Top = 2
          Width = 56
          Height = 16
          Caption = 'Subtotal:'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -13
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
          BeforePrint = RLLabel18BeforePrint
        end
        object RLDBResult1: TRLDBResult
          Left = 426
          Top = 2
          Width = 58
          Height = 17
          Alignment = taCenter
          AutoSize = False
          DataField = 'QTD'
          DataSource = DsRelatorio
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -13
          Font.Name = 'Arial'
          Font.Style = []
          Info = riSum
          ParentFont = False
        end
        object RLDBResult2: TRLDBResult
          Left = 487
          Top = 2
          Width = 99
          Height = 17
          Alignment = taRightJustify
          AutoSize = False
          DataField = 'VENDAS'
          DataSource = DsRelatorio
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -13
          Font.Name = 'Arial'
          Font.Style = []
          Info = riSum
          ParentFont = False
          BeforePrint = RLDBText8BeforePrint
        end
        object RLDBResult3: TRLDBResult
          Left = 691
          Top = 2
          Width = 98
          Height = 17
          Alignment = taRightJustify
          AutoSize = False
          DataField = 'CUSTO_VENDA'
          DataSource = DsRelatorio
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -13
          Font.Name = 'Arial'
          Font.Style = []
          Info = riSum
          ParentFont = False
          BeforePrint = RLDBText8BeforePrint
        end
        object RLDBResult4: TRLDBResult
          Left = 898
          Top = 2
          Width = 99
          Height = 17
          Alignment = taRightJustify
          AutoSize = False
          DataField = 'LUCRO'
          DataSource = DsRelatorio
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -13
          Font.Name = 'Arial'
          Font.Style = []
          Info = riSum
          ParentFont = False
          BeforePrint = RLDBText8BeforePrint
        end
        object RLLabel19: TRLLabel
          Left = -66
          Top = -10
          Width = 1024
          Height = 16
          Caption = 
            '- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ' +
            '- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ' +
            '- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ' +
            '- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -13
          Font.Name = 'Arial'
          Font.Style = [fsBold]
          ParentFont = False
        end
      end
    end
    object RLBand6: TRLBand
      Left = 19
      Top = 242
      Width = 1085
      Height = 27
      BandType = btSummary
      Borders.Sides = sdCustom
      Borders.DrawLeft = False
      Borders.DrawTop = True
      Borders.DrawRight = False
      Borders.DrawBottom = False
      object RLLabel20: TRLLabel
        Left = 1
        Top = 2
        Width = 79
        Height = 16
        Alignment = taRightJustify
        Caption = 'Total Geral:'
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clBlack
        Font.Height = -13
        Font.Name = 'Arial'
        Font.Style = [fsBold]
        ParentFont = False
      end
      object RLDBResult5: TRLDBResult
        Left = 425
        Top = 2
        Width = 58
        Height = 18
        Alignment = taCenter
        AutoSize = False
        DataField = 'QTD'
        DataSource = DsRelatorio
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clBlack
        Font.Height = -13
        Font.Name = 'Arial'
        Font.Style = [fsBold]
        Info = riSum
        ParentFont = False
      end
      object RLDBResult6: TRLDBResult
        Left = 486
        Top = 2
        Width = 103
        Height = 18
        Alignment = taRightJustify
        AutoSize = False
        DataField = 'VENDAS'
        DataSource = DsRelatorio
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clBlack
        Font.Height = -13
        Font.Name = 'Arial'
        Font.Style = [fsBold]
        Info = riSum
        ParentFont = False
        BeforePrint = RLDBText8BeforePrint
      end
      object RLDBResult7: TRLDBResult
        Left = 690
        Top = 2
        Width = 102
        Height = 18
        Alignment = taRightJustify
        AutoSize = False
        DataField = 'CUSTO_VENDA'
        DataSource = DsRelatorio
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clBlack
        Font.Height = -13
        Font.Name = 'Arial'
        Font.Style = [fsBold]
        Info = riSum
        ParentFont = False
        BeforePrint = RLDBText8BeforePrint
      end
      object RLDBResult8: TRLDBResult
        Left = 894
        Top = 2
        Width = 102
        Height = 18
        Alignment = taRightJustify
        AutoSize = False
        DataField = 'LUCRO'
        DataSource = DsRelatorio
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clBlack
        Font.Height = -13
        Font.Name = 'Arial'
        Font.Style = [fsBold]
        Info = riSum
        ParentFont = False
        BeforePrint = RLDBText8BeforePrint
      end
    end
  end
  object RLReportPorClassificacao: TRLReport [5]
    Left = 113
    Top = 444
    Width = 1123
    Height = 794
    DataSource = DsRelatorio
    Font.Charset = DEFAULT_CHARSET
    Font.Color = clBlack
    Font.Height = -16
    Font.Name = 'Arial'
    Font.Style = []
    Margins.LeftMargin = 5.000000000000000000
    Margins.RightMargin = 5.000000000000000000
    PageSetup.Orientation = poLandscape
    object RLBand7: TRLBand
      Left = 19
      Top = 38
      Width = 1085
      Height = 81
      BandType = btHeader
      Borders.Sides = sdCustom
      Borders.DrawLeft = False
      Borders.DrawTop = False
      Borders.DrawRight = False
      Borders.DrawBottom = True
      Borders.FixedBottom = True
      Font.Charset = DEFAULT_CHARSET
      Font.Color = clBlack
      Font.Height = -13
      Font.Name = 'Arial'
      Font.Style = []
      ParentFont = False
      BeforePrint = RLBand7BeforePrint
      object RlEmpresaPorClassificacao: TRLLabel
        Left = 2
        Top = 2
        Width = 88
        Height = 16
        Caption = '                     '
      end
      object RlSisLocalPorClassificacao: TRLLabel
        Left = 2
        Top = 21
        Width = 163
        Height = 16
      end
      object RlNamePorClassificacao: TRLLabel
        Left = 2
        Top = 39
        Width = 159
        Height = 16
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clBlack
        Font.Height = -13
        Font.Name = 'Arial'
        Font.Style = [fsBold]
        ParentFont = False
      end
      object RLDBText13: TRLDBText
        Left = 620
        Top = 158
        Width = 77
        Height = 16
      end
      object rlSubTituloPorClassificacao: TRLLabel
        Left = 2
        Top = 58
        Width = 88
        Height = 16
        Caption = '                     '
      end
      object RLMemoPorClassificacao: TRLMemo
        Left = 617
        Top = 39
        Width = 425
        Height = 16
      end
      object RLSystemInfo2: TRLSystemInfo
        Left = 1087
        Top = 2
        Width = 135
        Height = 16
        Alignment = taRightJustify
        Info = itPageNumber
        Text = 'P'#225'gina: '
      end
      object RlInfoPorClassificacao: TRLLabel
        Left = 617
        Top = 2
        Width = 133
        Height = 16
      end
      object RLSystemInfo3: TRLSystemInfo
        Left = 1222
        Top = 2
        Width = 120
        Height = 16
        Info = itLastPageNumber
        Text = '/ '
      end
    end
    object RLBand8: TRLBand
      Left = 19
      Top = 119
      Width = 1085
      Height = 42
      BandType = btColumnHeader
      Borders.Sides = sdCustom
      Borders.DrawLeft = False
      Borders.DrawTop = False
      Borders.DrawRight = False
      Borders.DrawBottom = True
      Borders.FixedBottom = True
      object RLLabel21: TRLLabel
        Left = 1
        Top = 20
        Width = 49
        Height = 16
        AutoSize = False
        Caption = 'C'#243'digo'
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clBlack
        Font.Height = -13
        Font.Name = 'Arial'
        Font.Style = [fsBold]
        ParentFont = False
      end
      object RLLabel22: TRLLabel
        Left = 53
        Top = 20
        Width = 73
        Height = 16
        AutoSize = False
        Caption = 'Refer'#234'ncia'
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clBlack
        Font.Height = -13
        Font.Name = 'Arial'
        Font.Style = [fsBold]
        ParentFont = False
      end
      object RLLabel23: TRLLabel
        Left = 129
        Top = 20
        Width = 66
        Height = 16
        Caption = 'Descri'#231#227'o'
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clBlack
        Font.Height = -13
        Font.Name = 'Arial'
        Font.Style = [fsBold]
        ParentFont = False
      end
      object RLLabel24: TRLLabel
        Left = 434
        Top = 20
        Width = 58
        Height = 17
        Alignment = taCenter
        AutoSize = False
        Caption = 'Vendida'
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clBlack
        Font.Height = -13
        Font.Name = 'Arial'
        Font.Style = [fsBold]
        ParentFont = False
      end
      object RLLabel25: TRLLabel
        Left = 448
        Top = 0
        Width = 26
        Height = 16
        Alignment = taCenter
        Caption = 'Qtd'
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clBlack
        Font.Height = -13
        Font.Name = 'Arial'
        Font.Style = [fsBold]
        ParentFont = False
      end
      object RLLabel26: TRLLabel
        Left = 494
        Top = 0
        Width = 99
        Height = 17
        Alignment = taRightJustify
        AutoSize = False
        Caption = 'Total'
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clBlack
        Font.Height = -13
        Font.Name = 'Arial'
        Font.Style = [fsBold]
        ParentFont = False
      end
      object RLLabel27: TRLLabel
        Left = 494
        Top = 20
        Width = 99
        Height = 17
        Alignment = taRightJustify
        AutoSize = False
        Caption = 'Venda'
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clBlack
        Font.Height = -13
        Font.Name = 'Arial'
        Font.Style = [fsBold]
        ParentFont = False
      end
      object RLLabel28: TRLLabel
        Left = 597
        Top = 20
        Width = 98
        Height = 17
        Alignment = taRightJustify
        AutoSize = False
        Caption = 'M'#233'dia'
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clBlack
        Font.Height = -13
        Font.Name = 'Arial'
        Font.Style = [fsBold]
        ParentFont = False
      end
      object RLLabel29: TRLLabel
        Left = 597
        Top = 0
        Width = 98
        Height = 17
        Alignment = taRightJustify
        AutoSize = False
        Caption = 'Venda'
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clBlack
        Font.Height = -13
        Font.Name = 'Arial'
        Font.Style = [fsBold]
        ParentFont = False
      end
      object RLLabel37: TRLLabel
        Left = 698
        Top = 20
        Width = 99
        Height = 17
        Alignment = taRightJustify
        AutoSize = False
        Caption = 'Venda'
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clBlack
        Font.Height = -13
        Font.Name = 'Arial'
        Font.Style = [fsBold]
        ParentFont = False
      end
      object RLLabel38: TRLLabel
        Left = 698
        Top = 0
        Width = 99
        Height = 17
        Alignment = taRightJustify
        AutoSize = False
        Caption = 'Custo da'
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clBlack
        Font.Height = -13
        Font.Name = 'Arial'
        Font.Style = [fsBold]
        ParentFont = False
      end
      object RLLabel39: TRLLabel
        Left = 802
        Top = 20
        Width = 99
        Height = 17
        Alignment = taRightJustify
        AutoSize = False
        Caption = 'M'#233'dio'
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clBlack
        Font.Height = -13
        Font.Name = 'Arial'
        Font.Style = [fsBold]
        ParentFont = False
      end
      object RLLabel40: TRLLabel
        Left = 802
        Top = 0
        Width = 99
        Height = 17
        Alignment = taRightJustify
        AutoSize = False
        Caption = 'Custo'
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clBlack
        Font.Height = -13
        Font.Name = 'Arial'
        Font.Style = [fsBold]
        ParentFont = False
      end
      object RLLabel41: TRLLabel
        Left = 905
        Top = 20
        Width = 99
        Height = 17
        Alignment = taRightJustify
        AutoSize = False
        Caption = 'Lucro'
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clBlack
        Font.Height = -13
        Font.Name = 'Arial'
        Font.Style = [fsBold]
        ParentFont = False
      end
      object RLLabel42: TRLLabel
        Left = 905
        Top = 0
        Width = 99
        Height = 17
        Alignment = taRightJustify
        AutoSize = False
        Caption = 'Total'
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clBlack
        Font.Height = -13
        Font.Name = 'Arial'
        Font.Style = [fsBold]
        ParentFont = False
      end
      object RLLabel43: TRLLabel
        Left = 1009
        Top = 20
        Width = 72
        Height = 17
        Alignment = taRightJustify
        AutoSize = False
        Caption = 'Lucro'
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clBlack
        Font.Height = -13
        Font.Name = 'Arial'
        Font.Style = [fsBold]
        ParentFont = False
      end
      object RLLabel44: TRLLabel
        Left = 1009
        Top = 0
        Width = 72
        Height = 17
        Alignment = taRightJustify
        AutoSize = False
        Caption = '%'
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clBlack
        Font.Height = -13
        Font.Name = 'Arial'
        Font.Style = [fsBold]
        ParentFont = False
      end
    end
    object RLBand14: TRLBand
      Left = 19
      Top = 244
      Width = 1085
      Height = 58
      BandType = btSummary
      Borders.Sides = sdCustom
      Borders.DrawLeft = False
      Borders.DrawTop = True
      Borders.DrawRight = False
      Borders.DrawBottom = False
      object RLLabel36: TRLLabel
        Left = 55
        Top = 2
        Width = 79
        Height = 16
        Alignment = taRightJustify
        Caption = 'Total Geral:'
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clBlack
        Font.Height = -13
        Font.Name = 'Arial'
        Font.Style = [fsBold]
        ParentFont = False
      end
      object RLDBResult15: TRLDBResult
        Left = 434
        Top = 2
        Width = 58
        Height = 18
        Alignment = taCenter
        AutoSize = False
        DataField = 'QTD'
        DataSource = DsRelatorio
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clBlack
        Font.Height = -13
        Font.Name = 'Arial'
        Font.Style = [fsBold]
        Info = riSum
        ParentFont = False
      end
      object RLDBResult16: TRLDBResult
        Left = 498
        Top = 2
        Width = 103
        Height = 18
        Alignment = taRightJustify
        AutoSize = False
        DataField = 'VENDAS'
        DataSource = DsRelatorio
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clBlack
        Font.Height = -13
        Font.Name = 'Arial'
        Font.Style = [fsBold]
        Info = riSum
        ParentFont = False
        BeforePrint = RLDBText8BeforePrint
      end
      object RLDBResult23: TRLDBResult
        Left = 701
        Top = 2
        Width = 102
        Height = 18
        Alignment = taRightJustify
        AutoSize = False
        DataField = 'CUSTO_VENDA'
        DataSource = DsRelatorio
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clBlack
        Font.Height = -13
        Font.Name = 'Arial'
        Font.Style = [fsBold]
        Info = riSum
        ParentFont = False
        BeforePrint = RLDBText8BeforePrint
      end
      object RLDBResult24: TRLDBResult
        Left = 902
        Top = 2
        Width = 102
        Height = 18
        Alignment = taRightJustify
        AutoSize = False
        DataField = 'LUCRO'
        DataSource = DsRelatorio
        Font.Charset = DEFAULT_CHARSET
        Font.Color = clBlack
        Font.Height = -13
        Font.Name = 'Arial'
        Font.Style = [fsBold]
        Info = riSum
        ParentFont = False
        BeforePrint = RLDBText8BeforePrint
      end
    end
    object RLGroup4: TRLGroup
      Left = 19
      Top = 161
      Width = 1085
      Height = 83
      DataFields = 'CLASS_1'
      object RLBand12: TRLBand
        Left = 0
        Top = 48
        Width = 1085
        Height = 32
        BandType = btColumnFooter
        object RLLabel30: TRLLabel
          Left = 14
          Top = -7
          Width = 1024
          Height = 16
          Caption = 
            '- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ' +
            '- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ' +
            '- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ' +
            '- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -13
          Font.Name = 'Arial'
          Font.Style = [fsBold]
          ParentFont = False
        end
        object RLLabel31: TRLLabel
          Left = 54
          Top = 5
          Width = 56
          Height = 16
          Caption = 'Subtotal:'
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -13
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
          BeforePrint = RLLabel31BeforePrint
        end
        object RLDBResult9: TRLDBResult
          Left = 434
          Top = 5
          Width = 58
          Height = 17
          Alignment = taCenter
          AutoSize = False
          DataField = 'QTD'
          DataSource = DsRelatorio
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -13
          Font.Name = 'Arial'
          Font.Style = []
          Info = riSum
          ParentFont = False
        end
        object RLDBResult10: TRLDBResult
          Left = 494
          Top = 5
          Width = 99
          Height = 17
          Alignment = taRightJustify
          AutoSize = False
          DataField = 'VENDAS'
          DataSource = DsRelatorio
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -13
          Font.Name = 'Arial'
          Font.Style = []
          Info = riSum
          ParentFont = False
          BeforePrint = RLDBText8BeforePrint
        end
        object RLDBResult17: TRLDBResult
          Left = 701
          Top = 5
          Width = 98
          Height = 17
          Alignment = taRightJustify
          AutoSize = False
          DataField = 'CUSTO_VENDA'
          DataSource = DsRelatorio
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -13
          Font.Name = 'Arial'
          Font.Style = []
          Info = riSum
          ParentFont = False
          BeforePrint = RLDBText8BeforePrint
        end
        object RLDBResult18: TRLDBResult
          Left = 905
          Top = 5
          Width = 99
          Height = 17
          Alignment = taRightJustify
          AutoSize = False
          DataField = 'LUCRO'
          DataSource = DsRelatorio
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -13
          Font.Name = 'Arial'
          Font.Style = []
          Info = riSum
          ParentFont = False
          BeforePrint = RLDBText8BeforePrint
        end
      end
      object RLBand11: TRLBand
        Left = 0
        Top = 23
        Width = 1085
        Height = 25
        object RLDBText16: TRLDBText
          Left = 1
          Top = 4
          Width = 50
          Height = 17
          Alignment = taCenter
          AutoSize = False
          DataField = 'PROD_CODIGO'
          DataSource = DsRelatorio
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -13
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
        end
        object RLDBText17: TRLDBText
          Left = 53
          Top = 4
          Width = 73
          Height = 17
          AutoSize = False
          DataField = 'PROD_REFERENCIA'
          DataSource = DsRelatorio
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -13
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
        end
        object RLDBText18: TRLDBText
          Left = 401
          Top = -220
          Width = 304
          Height = 17
          AutoSize = False
          DataField = 'PROD_DESCRICAOSAI'
          DataSource = DsRelatorio
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -13
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
        end
        object RLDBText19: TRLDBText
          Left = 434
          Top = 4
          Width = 58
          Height = 17
          Alignment = taCenter
          AutoSize = False
          DataField = 'QTD'
          DataSource = DsRelatorio
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -13
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
        end
        object RLDBText20: TRLDBText
          Left = 494
          Top = 4
          Width = 99
          Height = 17
          Alignment = taRightJustify
          AutoSize = False
          DataField = 'VENDAS'
          DataSource = DsRelatorio
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -13
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
          BeforePrint = RLDBText8BeforePrint
        end
        object RLDBText21: TRLDBText
          Left = 597
          Top = 4
          Width = 98
          Height = 17
          Alignment = taRightJustify
          AutoSize = False
          DataField = 'VENDA_MEDIA'
          DataSource = DsRelatorio
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -13
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
          BeforePrint = RLDBText8BeforePrint
        end
        object RLDBText22: TRLDBText
          Left = 701
          Top = 4
          Width = 98
          Height = 17
          Alignment = taRightJustify
          AutoSize = False
          DataField = 'CUSTO_VENDA'
          DataSource = DsRelatorio
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -13
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
          BeforePrint = RLDBText8BeforePrint
        end
        object RLDBText24: TRLDBText
          Left = 802
          Top = 4
          Width = 99
          Height = 17
          Alignment = taRightJustify
          AutoSize = False
          DataField = 'CUSTO_MEDIO'
          DataSource = DsRelatorio
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -13
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
          BeforePrint = RLDBText8BeforePrint
        end
        object RLDBText25: TRLDBText
          Left = 905
          Top = 4
          Width = 99
          Height = 17
          Alignment = taRightJustify
          AutoSize = False
          DataField = 'LUCRO'
          DataSource = DsRelatorio
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -13
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
          BeforePrint = RLDBText8BeforePrint
        end
        object RLDBText26: TRLDBText
          Left = 1009
          Top = 4
          Width = 72
          Height = 17
          Alignment = taRightJustify
          AutoSize = False
          DataField = 'LUCRO_PERC'
          DataSource = DsRelatorio
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -13
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
          BeforePrint = RLDBText8BeforePrint
        end
        object RLDBText14: TRLDBText
          Left = 128
          Top = 4
          Width = 299
          Height = 17
          AutoSize = False
          DataField = 'PROD_DESCRICAOSAI'
          DataSource = DsRelatorio
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -11
          Font.Name = 'Arial'
          Font.Style = []
          ParentFont = False
        end
      end
      object RLBand15: TRLBand
        Left = 0
        Top = 0
        Width = 1085
        Height = 23
        BandType = btColumnHeader
        object RLDBText23: TRLDBText
          Left = 6
          Top = 4
          Width = 62
          Height = 16
          DataField = 'CLASS_1'
          DataSource = DsRelatorio
          Font.Charset = DEFAULT_CHARSET
          Font.Color = clBlack
          Font.Height = -13
          Font.Name = 'Arial'
          Font.Style = [fsBold]
          ParentFont = False
          BeforePrint = RLDBText23BeforePrint
        end
      end
    end
  end
  inherited QPesquisa: TQuery
    SQL.Strings = (
      '')
    Left = 432
    Top = 97
  end
  inherited DSPesquisa: TDataSource
    Left = 184
    Top = 334
  end
  inherited RLDraftFilter: TRLDraftFilter
    Left = 824
    Top = 96
  end
  inherited RLHTMLFilter1: TRLHTMLFilter
    Left = 600
    Top = 272
  end
  inherited RLXLSFilter: TRLXLSFilter
    Left = 600
    Top = 336
  end
  inherited RLPDFFilter: TRLPDFFilter
    Left = 584
    Top = 320
  end
  inherited SaveDialog: TSaveDialog
    Left = 648
    Top = 328
  end
  object CDSRelatorio: TClientDataSet
    Aggregates = <>
    Params = <>
    Left = 808
    Top = 440
  end
  object DSNivel1: TDataSource
    DataSet = QNivel1
    OnDataChange = DSNivel1DataChange
    Left = 680
    Top = 344
  end
  object DSNivel3: TDataSource
    DataSet = QNivel3
    Left = 888
    Top = 288
  end
  object DsLocalEstoque: TDataSource
    DataSet = DMGestao.QLocal
    Left = 640
    Top = 352
  end
  object DSNivel2: TDataSource
    DataSet = QNivel2
    Left = 696
    Top = 464
  end
  object QNivel2: TQuery
    DatabaseName = 'base'
    SQL.Strings = (
      'SELECT * FROM CLASSIFICACAOPRODUTO '
      'WHERE CLASS_PROD_NIVEL1 = :CLASS_PROD_CODIGO AND '
      '              CLASS_PROD_NIVEL2 IS NULL'
      'ORDER BY CLASS_PROD_DESCRICAO')
    Left = 664
    Top = 344
    ParamData = <
      item
        DataType = ftInteger
        Name = 'CLASS_PROD_CODIGO'
        ParamType = ptUnknown
        Size = 4
      end>
  end
  object DSGrupoProduto: TDataSource
    DataSet = DMGestao.QGrupProduto
    Left = 744
    Top = 352
  end
  object QNivel3: TQuery
    DatabaseName = 'base'
    Left = 408
    Top = 96
  end
  object QNivel1: TQuery
    DatabaseName = 'base'
    SQL.Strings = (
      'SELECT * FROM CLASSIFICACAOPRODUTO '
      ''
      ''
      'ORDER BY CLASS_PROD_DESCRICAO')
    Left = 688
    Top = 368
  end
  object DsRelatorio: TDataSource
    DataSet = CDSRelatorio
    Left = 664
    Top = 336
  end
  object CDSAux: TClientDataSet
    Aggregates = <>
    Params = <>
    Left = 760
    Top = 520
  end
  object QLocal: TQuery
    Active = True
    DatabaseName = 'base'
    SQL.Strings = (
      'select * from local'
      'where'
      '((local.excluido <> '#39'S'#39')OR(local.excluido is null))')
    Left = 400
    Top = 232
  end
  object DSLocal: TDataSource
    DataSet = QLocal
    Left = 408
    Top = 270
  end
end
